//
//  PageContentView.swift
//  LPZ-DYZB
//
//  Created by apple on 16/11/15.
//  Copyright © 2016年 刘培壮. All rights reserved.
//

import UIKit

class PageContentView: UIView {

    private lazy var flowLayout: UICollectionViewFlowLayout = { [weak self] in
        let layout = UICollectionViewFlowLayout()
        layout.itemSize = (self?.frame.size)!
        layout.scrollDirection = .horizontal
        layout.minimumLineSpacing = 0
        layout.minimumInteritemSpacing = 0
        return layout
    }()
    
    private lazy var collectionView : UICollectionView = {
        let collectionView  = UICollectionView(frame: self.frame, collectionViewLayout: self.flowLayout)
        collectionView.isPagingEnabled = true
        
        return collectionView
    }()
    
    init(frame: CGRect, childVcs:[UIViewController], parentVc: UIViewController) {
        super.init(frame: frame)
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}
